/**
 * Created by ryansecreat on 2017/12/25.
 */

const Subscrption=require("egg").Subscription;

class Output extends Subscrption
{
    static get schedule() {
        return {
            interval: '1h', // 1 分钟间隔
            type: 'worker', // 指定所有的 worker 都需要执行
        };
    }

    async subscribe() {
        this.logger.info("shedule start");
    }
}

module.exports=Output;